package com.andeveloper.demo;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
	@RequestMapping("/")
	public String index(Model model) {
		model.addAttribute("title", "index");
		model.addAttribute("message", "hello,world!");
		return "index";
	}
}
